package com.ccrfid.rmc6.entity.business.nightpatrol;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "np_result_detail")
public class NpResultDetailEntity {
    private Long id;
    private Long resultId;
    private String personnelName;
    private Long personnelId;
    private Long cardNumber;
    private Timestamp startTime;
    private Timestamp endTime;
    private Timestamp backStartTime;
    private Long timeLength;
    private String resultStatus;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Basic
    @Column(name = "result_id")
    public Long getResultId() {
        return resultId;
    }

    public void setResultId(Long resultId) {
        this.resultId = resultId;
    }


    @Basic
    @Column(name = "personnel_name", nullable = false, length = 45)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "personnel_id")
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }


    @Basic
    @Column(name = "card_number")
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }


    @Basic
    @Column(name = "start_time", nullable = false)
    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }


    @Basic
    @Column(name = "end_time", nullable = false)
    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }


    @Basic
    @Column(name = "back_start_time", nullable = false)
    public Timestamp getBackStartTime() {
        return backStartTime;
    }

    public void setBackStartTime(Timestamp backStartTime) {
        this.backStartTime = backStartTime;
    }


    @Basic
    @Column(name = "time_length")
    public Long getTimeLength() {
        return timeLength;
    }

    public void setTimeLength(Long timeLength) {
        this.timeLength = timeLength;
    }

    @Basic
    @Column(name = "result_status")
    public String getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }



}
